﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000E2 RID: 226
	internal class InvalidDateTime : IDateTimeDecoder
	{
		// Token: 0x06000347 RID: 839 RVA: 0x0000C5F0 File Offset: 0x0000A9F0
		private InvalidDateTime()
		{
		}

		// Token: 0x06000348 RID: 840 RVA: 0x0000C5F8 File Offset: 0x0000A9F8
		public DateTime Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000FC RID: 252
		internal static readonly IDateTimeDecoder Instance = new InvalidDateTime();
	}
}
